package com.bitdf.txing.users.feign;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.users.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        name = "tx-third-party",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface  ThirdPartFeignService {
    @GetMapping("/tx/thirdparty/sms/sendcode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}